package o;

import android.os.Build;
import com.huawei.gamebox.plugin.gameservice.bean.GameInfo;
import java.util.TimeZone;

public class bfd extends cvs {
    public static final String GB_API = "gbClientApi";
    public static final String GSS_URL = "jxs.url";
    private String appId_;
    private int clientVersionCode_;
    private String clientVersionName_;
    private String cpId_;
    private String deliverRegion_;
    private String directory_;
    private String package_;
    private String phoneType_;
    private String requestTime;
    private String sdkVersionCode_;
    private String sdkVersionName_;
    private String timeZone_;

    public bfd() {
        setStoreApi("gbClientApi");
        this.targetServer = "jxs.url";
        ˋ(bfj.ॱ());
        ॱ(bfj.ˋ());
        setLocale_(doi.ॱ());
        ˋ(ˎ());
        setServiceType_(4);
        ʼ(Build.MODEL);
        this.requestTime = String.valueOf(System.currentTimeMillis());
    }

    public bfd(GameInfo gameInfo) {
        this();
        this.sdkVersionCode_ = gameInfo.getSdkVersionCode();
        this.sdkVersionName_ = gameInfo.getSdkVersionName();
        this.cpId_ = gameInfo.getCpId();
        this.package_ = gameInfo.getPackageName();
        this.appId_ = gameInfo.getAppId();
        this.deliverRegion_ = eqp.ͺ();
        if (dof.ॱ(this.appId_)) {
            ezo ˋ = ezs.ˏ().ˋ(gameInfo);
            if (ˋ != null) {
                this.appId_ = ˋ.ˊ();
            }
        }
    }

    public void ˋ(int i) {
        this.clientVersionCode_ = i;
    }

    public void ॱ(String str) {
        this.clientVersionName_ = str;
    }

    public void ˋ(String str) {
        this.timeZone_ = str;
    }

    private String ˎ() {
        return TimeZone.getDefault().getID();
    }

    public void ˎ(String str) {
        this.directory_ = str;
    }

    public String ˏ() {
        return this.appId_;
    }

    public void ˊ(String str) {
        this.appId_ = str;
    }

    public String ˋ() {
        return this.package_;
    }

    public void ˏ(String str) {
        this.package_ = str;
    }

    public void ʼ(String str) {
        this.phoneType_ = str;
    }
}
